import { Vec2, v2 } from 'cc';
import { ecs } from 'db://oops-framework/libs/ecs/ECS';

@ecs.register('moveComponent')
export class MoveComponent extends ecs.Comp {
    heading: Vec2 = v2();
    speed: number = 0;

    reset(): void {
        this.heading.x = 0;
        this.heading.y = 0;
        this.speed = 0;
    }
}